package cn.bonoon.entities.interacting;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 用户提问
 * 
 * @author jackson
 * 
 */
@Entity
@Table(name = "t_question")
public class QuestionEntity extends AbstractQuestionEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9096635691041499854L;

	/**
	 * 如果提问的问题需要工作人员另外通知的，则需要填写联系人、联系电话或联系邮箱
	 */
	@Column(name = "C_CONTACTNAME")
	private String contactName;
	
	@Column(name = "C_CONTACTPHONE")
	private String contactPhone;
	
	@Column(name = "C_CONTACTEMAIL")
	private String contactEmail;
	
//	/**
//	 * Frequently Asked Questions
//	 */
//	@Column(name = "C_FAQ")
//	private boolean faq;
	
	@Column(name = "C_ANSWERED")
	private boolean answered;
	
	@Column(name = "C_ANSWERID")
	private Long answerId;
	
	@Column(name = "C_ANSWERNAME")
	private String answerName;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "C_ANSWERAT")
	private Date answerAt;
	
//	@Column(name = "C_KEY")
//	private String key;

	

//	public boolean isFaq() {
//		return faq;
//	}
//
//	public void setFaq(boolean faq) {
//		this.faq = faq;
//	}

	public Long getAnswerId() {
		return answerId;
	}

	public void setAnswerId(Long answerId) {
		this.answerId = answerId;
	}

	public String getAnswerName() {
		return answerName;
	}

	public void setAnswerName(String answerName) {
		this.answerName = answerName;
	}

	public Date getAnswerAt() {
		return answerAt;
	}

	public void setAnswerAt(Date answerAt) {
		this.answerAt = answerAt;
	}

	public boolean isAnswered() {
		return answered;
	}

	public void setAnswered(boolean answered) {
		this.answered = answered;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getContactEmail() {
		return contactEmail;
	}

	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}

//	public String getKey() {
//		return key;
//	}
//
//	public void setKey(String key) {
//		this.key = key;
//	}

}
